import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'
import FrequencyAnalysis from "../views/FrequencyFunction/FrequencyAnalysis";
Vue.use(VueRouter)
import XLSX from 'xlsx'
import App from "../App";
Vue.use(XLSX)
import 'lib-flexible/flexible.js'


const routes = [

  {
    path: '/',
    name: 'MainPage',
    component:()=>import("../components/MainPage"),
    // children:[
    //   {
    //     // path:'/login',
    //     path:'/FrequencyAnalysis',
    //     component:()=>import("../views/FrequencyFunction/FrequencyAnalysis"),
    //   },
    // ]

  },
  {
    //频次分析
    // path:'/login',
    path:'/FrequencyAnalysis',
    component:()=>import("../views/FrequencyFunction/FrequencyAnalysis"),
  },
  {
    // path:'/login',
    // 关联分析
    path:'/AssociationAnalysis',
    component:()=>import("../views/AssociationFunction/AssociationAnalysis"),
  },
    //获取药对关联度
  {
    // path:'/login',
    //聚类分析
    path:'/ClusterAnalysisGetAssociation',
    component:()=>import("../views/ClusterFunction/ClusterAnalysiGetAssocation"),
  },
    //获取核心药物组

  {
    // path:'/login',
    //聚类分析
    path:'/ClusterAnalysisGetCoreMedicine',
    component:()=>import("../views/ClusterFunction/ClusterAnalysisGetCoreMedicine"),
  },
  {
    // path:'/login',
    //舌像处理
    path:'/TongueAnalysis',
    component:()=>import("../views/TongueFunction/TongueAnalysis"),
  },
  // {
  //   path: '/test',
  //   name: 'test',
  //   component:()=>import("../views/Tools/PageTable"),
  // },

]

const router = new VueRouter({
  routes
})

export default router
